package com.wanmait.wisdom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
* Created by Mybatis Generator 2024/04/19
*/
@Data
@Accessors(chain = true)
@TableName(value = "staff")
public class Staff implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工姓名
     */
    @TableField(value = "employee_name")
    private String employeeName;

    /**
     * 员工出生日期
     */
    @TableField(value = "birthday")
    private Date birthday;

    /**
     * 职务id
     */
    @TableField(value = "office_id")
    private Integer officeId;

    /**
     * 员工身份证
     */
    @TableField(value = "staff_card")
    private String staffCard;

    /**
     * 家庭住址
     */
    @TableField(value = "home_place")
    private String homePlace;

    /**
     * 入职时间
     */

    @TableField(value = "employment_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date employmentTime;

    /**
     * 联系方式
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 是否离职
     */
    @TableField(value = "enable")
    private Boolean enable;

    @TableField(exist = false)
    private Office office;

    private static final long serialVersionUID = 1L;

    public static final String COL_EMPLOYEE_NAME = "employee_name";

    public static final String COL_BIRTHDAY = "birthday";

    public static final String COL_OFFICE_ID = "office_id";

    public static final String COL_STAFF_CARD = "staff_card";

    public static final String COL_HOME_PLACE = "home_place";

    public static final String COL_EMPLOYMENT_TIME = "employment_time";

    public static final String COL_PHONE = "phone";

    public static final String COL_ENABLE = "enable";
}
